<template>
    <div class="aside-menu">
        <el-container>
            <el-aside width="150px">
                <el-menu default-active="Invoice" @select="onSelect">
                    <el-menu-item index="Invoice">
                        <span>甲方开票申请</span>
                    </el-menu-item>
                    <el-menu-item index="Down">
                        <span>付款申请</span>
                    </el-menu-item>
                    <el-menu-item index="Down">
                        <span>备用金申请</span>
                    </el-menu-item>
                    <el-menu-item index="Down">
                        <span>报销申请</span>
                    </el-menu-item>
                    <el-menu-item index="Down">
                        <span>收款确认</span>
                    </el-menu-item>
                    <el-menu-item index="Down">
                        <span>项目成本</span>
                    </el-menu-item>
                </el-menu>
            </el-aside>
            <el-main>
                <component :is="Invoice" v-if="value == 'Invoice'" />
            </el-main>
        </el-container>
    </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import Invoice from './components/invoice.vue';
const value = ref('Invoice')
const onSelect = (data: any) => {
    value.value = data
}
</script>

<style scoped>

</style>